
/**
 *
 *  qq音乐接口地址和请求参数：
 *
 *  data结尾的是请求的参数，const声明的为固定的请求参数，let声明的需要再添加参数例如歌单id，榜单id等
 *
 *  req_API 里面的是对应的接口地址，含有qq.com的地址可以用jsonp请求，其他则需要跨域插件处理
 *
 *  jsonp可以使用jsonp插件实现请求，用法类似axios
 *
 * */

//首页请求参数
const getRecommend_data = {
    format: "jsonp",
    loginUin: 0,
    hostUin: 0,
    g_tk: 1928093487,
    inCharset: 'utf-8',
    outCharset: 'utf-8',
    notice: 0,
    platform: "yqq",
    needNewCode: 0,
}
//歌单请求参数 需要disstid
let songList_data = {
    disstid: 2646688496,
    g_tk: 1928093487,
    inCharset: 'utf-8',
    outCharset: 'utf-8',
    notice: 0,
    format: 'jsonp',
    type: 1,
    json: 1,
    utf8: 1,
    onlysong: 0,
    platform: 'yqq',
    hostUin: 0,
    needNewCode: 0
}
//热门列表参数
const discList_data = {
    platform: 'yqq',
    hostUin: 0,
    sin: 0,
    ein: 29,
    sortId: 5,
    needNewCode: 0,
    categoryId: 10000000,
    rnd: Math.random(),
    format: 'json',
    inCharset: "utf-8",
    outCharset: "utf-8",
}
//歌手列表参数
const singer_data = {
    g_tk: 1928093487,
    inCharset: "utf-8",
    outCharset: "utf-8",
    notice: 0,
    format: "jsonp",
    channel: "singer",
    page: "list",
    key: "all_all_all",
    pagesize: 100,
    pagenum: 1,
    hostUin: 0,
    needNewCode: 0,
    platform: "yqq",
}
//歌手歌曲列表参数
const singerTrack_data = {
    g_tk:1928093487,
    inCharset:"utf-8",
    outCharset:"utf-8",
    notice:0,
    format:"jsonp",
    hostUin:0,
    needNewCode:0,
    platform:"yqq",
    order:"listen",
    begin:0,
    num:80,
    songstatus:1,
}
//排行榜
const topList_data = {
    inCharset: "utf-8",
    outCharset: "utf-8",
    notice: 0,
    format: "jsonp",
    uin: 0,
    needNewCode: 1,
    platform: "h5",
}

//排行榜 榜单 需要加topid
let topList_cp_data = {
    g_tk:1928093487,
    inCharset:"utf-8",
    outCharset:"utf-8",
    notice:0,
    format:"jsonp",
    needNewCode:1,
    uin:0,
    tpl:3,
    page:"detail",
    type:"top",
    platform:"h5",
}



const req_API = {
    //首页
    recommend: "https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg",
    //歌单
    songList: "http://ustbhuangyi.com/music/api/getCdInfo",
    //热门歌单
    discList: "http://ustbhuangyi.com/music/api/getDiscList",
    //歌手列表
    singerList: "https://c.y.qq.com/v8/fcg-bin/v8.fcg",
    //歌手歌曲列表
    singerTrackList: "https://c.y.qq.com/v8/fcg-bin/fcg_v8_singer_track_cp.fcg",

    //排行榜
    topList: "https://c.y.qq.com/v8/fcg-bin/fcg_myqq_toplist.fcg",
    //榜单
    toplist_cp:"https://c.y.qq.com/v8/fcg-bin/fcg_v8_toplist_cp.fcg",
}
